;Events for the War of the Ring Scenario by Catfish

;WARNING!!
;For Sauron's Eye only!
;Cheaters will be afflicted with the
;Black Breath and die a horrible death 
;within 5 days.

@BEGINEVENTS
;@DEBUG
;remaining heap space: 7087 bytes
;(25 concurrent Delayed events allowed)
@INITFLAG

@IF
Negotiation
talkermask=0x3F
listenermask=0x3F
@THEN
@ENDIF

@IF
Negotiation
talkermask=0x7A
listenermask=0x7A
@THEN
@ENDIF

@IF
Turn
turn=-1
@THEN
MakeAggression
who=Mordor
whom=Elves
ModifyReputation
who=Gondor
whom=Isengard
modifier=2
@ENDIF

@IF
Turn
turn=1
@THEN
PlayWaveFile
R0
CreateUnit
owner=Mordor
unit=Nazgl
count=3
veteran=true
homecity=Barad-dr
randomize
locations
54,58
74,84
63,63
64,80
63,55
62,54
68,56
77,51
90,78
71,49
endlocations
GiveTechnology
technology=60
receiver=Mordor
Flag
continuous
who=Elves
state=on
flag=16
@ENDIF

@IF
Turn
turn=1
@THEN
GiveTechnology
technology=60
receiver=Isengard
@ENDIF

@IF
Turn
turn=2
@THEN
CreateUnit
owner=Nature
unit=Barrow-wight
count=2
veteran=false
homecity=N4
locations
72,68
71,67
70,68
73,69
72,70
71,69
endlocations
BestowImprovement
improvement=58
race=Gondor
capital=true
wonders=true
@ENDIF

@IF
Turn
turn=2
@THEN
DelayPerFlag
randomize
basedelay=0
perflagdelay=2
mask=0x10000
CreateUnit
owner=Mordor
unit=Nazgl
count=2
veteran=true
homecity=Barad-dr
randomize
locations
74,84
72,64
64,80
79,77
68,56
81,73
87,65
77,51
90,78
71,49
endlocations
@ENDIF

@IF
Turn
turn=6
@THEN
DelayPerFlag
randomize
basedelay=0
perflagdelay=2
mask=0x10000
CreateUnit
owner=Mordor
unit=Nazgl
count=3
veteran=true
homecity=Barad-dr
randomize
locations
78,88
90,66
97,67
101,67
103,67
86,72
82,80
92,76
91,53
96,52
endlocations
@ENDIF

@IF
Turn
turn=6
@THEN
DelayPerFlag
randomize
basedelay=0
perflagdelay=3
mask=0x10000
CreateUnit
owner=Mordor
unit=Lord of the Nazgl
veteran=true
homecity=Barad-dr
randomize
locations
92,66
100,66
98,66
97,75
87,73
84,80
92,76
89,53
91,53
96,52
endlocations
GiveTechnology
technology=31
receiver=Mordor
@ENDIF

@IF
UnitKilled
unit=Sam
map=0
map=1
map=2
attacker=Anybody
defender=Gondor
@THEN
Text
Sam is captured by servants of the Enemy. He will undoubtedly be taken back to their Master for interrogation!
EndText
Flag
continuous
who=TriggerAttacker
state=on
mask=0x3
@ENDIF

@IF
UnitKilled
unit=Sam
map=3
attacker=Mordor
defender=Gondor
@THEN
Text
Sam is captured by orcs in Moria!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x3
@ENDIF

@IF
UnitKilled
unit=Merry
attacker=Anybody
defender=Gondor
@THEN
ChangeTerrain
map=2
terraintype=0
maprect
208,268,208,268,208,268,208,268
Text
Merry is captured by servants of the Enemy. He will undoubtedly be taken back to their Master for interrogation!
EndText
Flag
continuous
who=TriggerAttacker
state=on
mask=0xC
@ENDIF

@IF
CityDestroyed
city=I3
owner=Isengard
@AND
CheckFlag
who=Isengard
flag=21
state=on
@THEN
Flag
continuous
who=Isengard
state=on
flag=19
@ENDIF

@IF
CheckFlag
who=Isengard
mask=0x8000C
count=3
state=on
@THEN
JustOnce
Delay
delay=2
CreateUnit
owner=Gondor
unit=Merry
veteran=true
homecity=none
locations
117,131
115,131
119,131
114,130
113,129
112,130
111,131
110,130
109,131
109,133
endlocations
Text
Merry's captors squabble over the spoils en route to Isengard. Using the stealth afforded to him by the Elven-cloak received in Lrien, the resourceful Hobbit seizes the opportunity to escape Saruman's servants.
^
After crawling through an unfamiliar land, Merry finds himself on the outskirts of the foreboding forest of Fangorn.
EndText
@ENDIF

@IF
CheckFlag
who=Isengard
flag=19
state=on
@THEN
JustOnce
Flag
continuous
who=Isengard
state=off
mask=0xC
@ENDIF

@IF
UnitKilled
unit=Pippin
attacker=Anybody
defender=Gondor
@THEN
ChangeTerrain
map=2
terraintype=0
maprect
208,272,208,272,208,272,208,272
Text
Pippin is captured by servants of the Enemy. He will undoubtedly be taken back to their Master for interrogation!
EndText
Flag
continuous
who=TriggerAttacker
state=on
mask=0x30
@ENDIF

@IF
CityDestroyed
city=I4
owner=Isengard
@AND
CheckFlag
who=Isengard
flag=21
state=on
@THEN
Flag
continuous
who=Isengard
state=on
flag=20
@ENDIF

@IF
CheckFlag
who=Isengard
mask=0x100030
count=3
state=on
@THEN
JustOnce
Delay
delay=2
CreateUnit
owner=Gondor
unit=Pippin
veteran=true
homecity=none
locations
117,131
115,131
119,131
114,130
113,129
112,130
111,131
110,130
109,131
109,133
endlocations
Text
Pippin's captors squabble over the spoils en route to Isengard. Using the stealth afforded to him by the Elven-cloak received in Lrien, the resourceful Hobbit seizes the opportunity to escape Saruman's servants.
^
After crawling through an unfamiliar land, Pippin finds himself on the outskirts of the foreboding forest of Fangorn.
EndText
@ENDIF

@IF
CheckFlag
who=Isengard
flag=20
state=on
@THEN
JustOnce
Flag
continuous
who=Isengard
state=off
mask=0x30
@ENDIF

@IF
UnitKilled
unit=Aragorn (Strider)
attacker=Anybody
defender=Gondor
@THEN
PlayWaveFile
D1
Text
Aragorn, heir to the throne of Gondor is slain! Who will lead the free Men of Middle-earth against the might of Mordor?
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=6
@ENDIF

@IF
UnitKilled
unit=Aragorn (Elessar)
attacker=Anybody
defender=Gondor
@THEN
PlayWaveFile
D1
GiveTechnology
receiver=Gondor
technology=15
Text
King Elessar is slain! Who will now lead the Men of Gondor in his stead?
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=6
@ENDIF

@IF
CheckFlag
who=Anybody
flag=6
state=on
@THEN
TakeTechnology
whom=Gondor
technology=82
@ENDIF

@IF
UnitKilled
unit=Boromir
attacker=Anybody
defender=Gondor
@THEN
PlayWaveFile
B2
GiveTechnology
receiver=Gondor
technology=21
Text
Boromir is overwhelmed by foes. He sounds the Great Horn of Gondor; its echoes are perceived even as far away as Minas Tirith.
^
Alas, the heir of the Steward of Gondor is dead!
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=7
@ENDIF

@IF
CheckFlag
who=Gondor
technology=21
flag=21
state=on
@AND
CheckFlag
who=Mordor
mask=0xE0000000
count=3
state=off
@THEN
JustOnce
Delay
delay=2
GiveTechnology
receiver=Gondor
technology=71
Flag
continuous
who=Gondor
state=on
flag=22
@ENDIF

@IF
CheckFlag
who=Gondor
flag=22
state=on
@AND
CheckFlag
who=Gondor
flag=18
state=off
@THEN
JustOnce
PlayAVIFile
D2
ChangeTerrain
map=2
terraintype=0
maprect
216,264,216,264,216,264,216,264
TakeTechnology
whom=Gondor
technology=8
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Harad
@THEN
TakeTechnology
whom=Gondor
technology=71
Text
With the Steward of Gondor overcome by despair, Gandalf takes command of Minas Tirith's defences.
^
The Tower of Ecthelion is reactivated.
EndText
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Harad
@THEN
GiveTechnology
receiver=Gondor
technology=8
@ENDIF

@IF
CheckFlag
who=Gondor
flag=22
state=on
@AND
CheckFlag
who=Somebody
mask=0xC00
threshold=1
state=on
@THEN
JustOnce
GiveTechnology
receiver=Gondor
technology=71
@ENDIF

@IF
UnitKilled
unit=Gimli
attacker=Anybody
defender=Gondor
@THEN
Text
Gimli, son of Glin, is slain!
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=8
@ENDIF

@IF
UnitKilled
unit=Legolas
attacker=Anybody
defender=Gondor
@THEN
Text
Legolas of the Woodland Realm is slain!
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=9
@ENDIF

@IF
UnitKilled
unit=Gandalf the Grey
map=0
map=1
map=2
attacker=Anybody
defender=Gondor
@THEN
PlayWaveFile
G4
Text
The Wizard Gandalf is killed! Who will guide the Fellowship now?
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=10
@ENDIF

@IF
UnitKilled
unit=Gandalf the Grey
map=3
attacker=Mordor
defender=Gondor
@THEN
GiveTechnology
technology=42
receiver=Gondor
Text
Gandalf perishes in the dark mines of Moria! Mithrandir is forever lost to Middle-earth! Or is he?
EndText
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=2
@THEN
JustOnce
PlayWaveFile
G3
CreateUnit
owner=Gondor
unit=Gandalf the White
veteran=true
homecity=none
locations
117,131
117,129
116,130
118,130
115,129
118,128
119,131
119,129
116,128
115,131
endlocations
Text
Mithrandir! Mithrandir! Gandalf is returned to us in our hour of need!
EndText
@ENDIF

@IF
UnitKilled
unit=Gandalf the White
attacker=Anybody
defender=Gondor
@THEN
PlayWaveFile
G4
Text
Gandalf the White, first among wizards, is slain! His time on Middle-earth has come to an end.
EndText
Flag
continuous
who=TriggerAttacker
state=on
flag=11
@ENDIF

@IF
UnitKilled
unit=Orc Garrison
map=0
map=1
attacker=Gondor
defender=Mordor
@AND
CheckFlag
who=Mordor
mask=0xF8400000
count=6
state=off
@THEN
JustOnce
GiveTechnology
technology=31
receiver=Mordor
Text
This blatant attack on one of the Dark Lord's cities has set alarm bells ringing in Barad-dr. The wheels of Sauron's war machine begin to turn.
EndText
Flag
continuous
who=Mordor
state=on
mask=0x8400000
@ENDIF

@IF
UnitKilled
unit=Eye Orcs
map=1
attacker=Gondor
defender=Mordor
@THEN
JustOnce
Flag
continuous
who=Mordor
state=on
mask=0x3000
@ENDIF

@IF
UnitKilled
unit=Wolves
map=1
attacker=Gondor
defender=Mordor
@THEN
JustOnce
Flag
continuous
who=Mordor
state=on
mask=0x3000
@ENDIF

@IF
UnitKilled
unit=Orc Garrison
attacker=Gondor
defender=Isengard
@AND
CheckFlag
who=Isengard
mask=0x74C01000
count=7
state=off
@THEN
JustOnce
PlayWaveFile
U1
ChangeTerrain
map=2
terraintype=0
maprect
216,232,216,232,216,232,216,232
Text
This blatant attack on one of Saruman's cities has alarmed Isengard. The corrupted Wizard releases a host of orcs, half-orcs and savage hillmen from Dunland to ravage the lands of Rohan.
EndText
Flag
continuous
who=Isengard
state=on
mask=0x4400000
@ENDIF

@IF
UnitKilled
unit=Crebain
attacker=Gondor
defender=Anybody
@THEN
JustOnce
Flag
continuous
who=Isengard
state=on
flag=16
Text
A cloud of Crebain circles overhead. These evil birds from Dunland act as Saruman's eyes and ears.
EndText
ModifyReputation
who=Gondor
whom=Isengard
modifier=20
@ENDIF

@IF
UnitKilled
unit=Crebain
attacker=Gondor
defender=Anybody
@AND
CheckFlag
who=Isengard
flag=16
state=on
@THEN
JustOnce
Flag
continuous
who=Isengard
state=on
flag=17
ModifyReputation
who=Gondor
whom=Isengard
modifier=30
@ENDIF

@IF
UnitKilled
unit=Crebain
attacker=Gondor
defender=Anybody
@AND
CheckFlag
who=Isengard
flag=17
state=on
@THEN
JustOnce
Flag
continuous
who=Isengard
state=on
flag=18
ModifyReputation
who=Gondor
whom=Isengard
modifier=40
@ENDIF

@IF
UnitKilled
unit=Barrow-wight
attacker=Gondor
defender=Mordor
@THEN
JustOnce
Text
The chilling touch of a Barrow-wight has entrapped many an unwary traveller. On this occasion the victim provides stout opposition and the dreadful spirit is repelled.
EndText
@ENDIF

@IF
UnitKilled
unit=!
map=1
attacker=Gondor
defender=Mordor
@THEN
GiveTechnology
technology=63
receiver=Gondor
Transport
unit=Frodo
state=on
mode=use
type=2
@ENDIF

@IF
UnitKilled
unit=!
map=1
attacker=Gondor
defender=Mordor
@THEN
TakeTechnology
whom=Gondor
technology=63
Transport
unit=Mr Underhill
state=on
mode=use
type=2
@ENDIF

@IF
UnitKilled
unit=!
map=1
attacker=Gondor
defender=Mordor
@THEN
GiveTechnology
technology=79
receiver=Gondor
@ENDIF

@IF
UnitKilled
unit=!
map=1
attacker=Gondor
defender=Mordor
@THEN
GiveTechnology
technology=80
receiver=Gondor
Text
Within the barrow-mound some coins and some daggers of old are discovered. Forged long ago by Men of Westernesse, such fine weapons make excellent swords for Hobbit-folk. Word of this feat travels fast and Frodo is now expected in Bree.
EndText
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=50
@ENDIF

@IF
Turn
turn=9
@AND
CheckFlag
who=Gondor
flag=16
state=off
@THEN
CreateUnit
owner=Gondor
unit=Aragorn (Strider)
veteran=true
homecity=none
locations
75,67
74,66
75,65
75,69
77,67
76,68
74,68
76,66
73,67
74,64
endlocations
ChangeTerrain
map=2
terraintype=0
maprect
216,252,216,252,216,252,216,252
Text
A mysterious Ranger, known as Strider, appears at the Prancing Pony Inn in Bree. Expecting to receive the Ring-bearer, he is alarmed at his non-appearance.
EndText
Flag
continuous
who=Gondor
state=on
flag=16
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Nature
@THEN
PlayWaveFile
B1
PlayAVIFile
B1
CreateUnit
owner=Gondor
unit=Aragorn (Strider)
veteran=true
homecity=none
locations
75,67
74,66
75,65
75,69
77,67
76,68
74,68
76,66
73,67
74,64
endlocations
Flag
continuous
who=Gondor
state=on
flag=16
@ENDIF

@IF
CheckFlag
who=Gondor
flag=16
state=on
@THEN
JustOnce
Delay
delay=5
CreateUnit
owner=Gondor
unit=Elf-lord
veteran=true
homecity=none
locations
113,63
endlocations
ChangeTerrain
map=2
terraintype=0
maprect
232,252,232,252,232,252,232,252
Text
Elrond dispatches the Elf-lord Glorfindel to search for the Ring-bearer and provide him with a safe passage to Rivendell.
EndText
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Mordor
@THEN
PlayWaveFile
R1
PlayAVIFile
R1
GiveTechnology
technology=52
receiver=Gondor
CreateUnit
owner=Mordor
unit=Wolves
count=2
veteran=false
homecity=none
randomize
locations
106,94
107,93
109,85
109,89
113,79
120,78
120,82
124,64
124,70
124,74
endlocations
Flag
continuous
who=Gondor
state=on
flag=17
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Mordor
@THEN
TakeTechnology
whom=Gondor
technology=52
@ENDIF

@IF
CheckFlag
who=Gondor
flag=17
state=on
@THEN
JustOnce
PlayWaveFile
F1
CreateUnit
owner=Gondor
unit=Gandalf the Grey
veteran=true
homecity=none
locations
113,63
endlocations
Transport
unit=Aragorn (Strider)
state=on
mode=use
type=0
GiveTechnology
technology=90
receiver=Gondor
Text
The Fellowship of the Ring is assembled in Rivendell. Members include Gimli, son of Glin, Legolas of the Woodland Realm, Boromir of Gondor and the Wizard Gandalf.
EndText
@ENDIF

@IF
CheckFlag
who=Gondor
flag=17
state=on
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Boromir
veteran=true
homecity=none
locations
113,63
endlocations
TakeTechnology
whom=Gondor
technology=44
@ENDIF

@IF
CheckFlag
who=Gondor
flag=17
state=on
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Legolas
veteran=true
homecity=none
locations
113,63
endlocations
@ENDIF

@IF
CheckFlag
who=Gondor
flag=17
state=on
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Gimli
veteran=true
homecity=none
locations
113,63
endlocations
@ENDIF

@IF
Turn
turn=19
@AND
CheckFlag
who=Gondor
flag=17
state=off
@THEN
CreateUnit
owner=Mordor
unit=Wolves
count=2
veteran=false
homecity=none
randomize
locations
106,94
107,93
109,85
109,89
113,79
120,78
120,82
124,64
124,70
126,66
endlocations
Text
Frodo's failure to arrive in Rivendell has prompted the organisation of a search party at the behest of Elrond and the Wizard Gandalf.
EndText
Flag
continuous
who=Gondor
state=on
flag=17
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Mordor
@THEN
PlayWaveFile
M3
PlayAVIFile
M3
CreateUnit
owner=Mordor
unit=Trolls
count=2
veteran=false
homecity=none
randomize
locations
103,89,3
105,87,3
111,81,3
108,84,3
104,94,3
120,90,3
119,93,3
112,86,3
112,86,3
112,86,3
endlocations
Transport
unit=Eye Orcs
state=on
mode=native
type=4
ChangeTerrain
map=2
terraintype=0
maprect
192,230,192,230,192,230,192,230
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Mordor
@THEN
JustOnce
ChangeTerrain
map=2
terraintype=0
maprect
208,252,208,252,208,252,208,252
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Mordor
@THEN
JustOnce
CreateUnit
owner=Mordor
unit=Eye Orcs
count=5
veteran=false
homecity=none
randomize
locations
118,90,3
120,88,3
113,85,3
114,84,3
114,84,3
115,83,3
113,83,3
112,82,3
111,81,3
119,93,3
endlocations
@ENDIF

@IF
UnitKilled
unit=Eye Orcs
map=3
attacker=Gondor
defender=Mordor
@THEN
JustOnce
Delay
delay=2
CreateUnit
owner=Mordor
unit=Eye Orcs
count=3
veteran=true
homecity=none
randomize
locations
118,90,3
120,88,3
113,85,3
114,84,3
114,84,3
115,83,3
113,83,3
112,82,3
111,81,3
119,93,3
endlocations
@ENDIF

@IF
UnitKilled
unit=!
map=1
attacker=Gondor
defender=Nature
@THEN
PlayWaveFile
L1
PlayAVIFile
L1
GiveTechnology
technology=96
receiver=Gondor
CreateUnit
owner=Gondor
unit=Elven-boat
count=3
veteran=false
homecity=none
locations
125,105
125,107
126,106
126,104
126,102
endlocations
Flag
continuous
who=Isengard
state=on
flag=21
@ENDIF

@IF
CheckFlag
who=Isengard
flag=21
state=on
@THEN
JustOnce
CreateUnit
owner=Mordor
unit=Shelob the Great
veteran=false
homecity=none
locations
161,165,2
162,166,2
160,164,2
161,163,2
162,168,2
165,163,2
166,162,2
166,164,2
164,160,2
160,162,2
endlocations
ChangeTerrain
map=2
terraintype=0
maprect
232,264,232,264,232,264,232,264
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Harad
@THEN
PlayWaveFile
G1
PlayAVIFile
G1
CreateUnit
owner=Gondor
unit=Smagol
veteran=true
homecity=none
locations
147,141
146,140
145,141
148,140
146,142
147,139
147,143
145,143
144,142
146,144
endlocations
Transport
unit=Sam
state=on
mode=use
type=2
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Harad
@THEN
Transport
unit=Mr Underhill
state=on
mode=native
type=0
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Harad
@THEN
Transport
unit=Frodo
state=on
mode=native
type=0
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Harad
@THEN
Transport
unit=Sam
state=on
mode=native
type=0
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Rhn
@THEN
PlayAVIFile
E3
Transport
unit=Elven Marksmen
state=on
mode=use
type=1
GiveTechnology
technology=3
receiver=Gondor
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=6
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Treebeard
veteran=true
homecity=none
locations
108,130
109,125
109,131
109,129
108,128
108,126
109,127
110,126
110,128
110,130
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=6
@THEN
JustOnce
PlayWaveFile
E2
PlayAVIFile
E2
CreateUnit
owner=Gondor
unit=Ents
count=7
veteran=true
homecity=none
locations
108,130
109,125
109,131
109,129
108,128
108,126
109,127
110,126
110,128
110,130
endlocations
@ENDIF

@IF
CityTaken
city=Helm's Deep
attacker=Anybody
defender=Rohan
@THEN
JustOnce
ChangeMoney
receiver=TriggerAttacker
amount=750
GiveTechnology
technology=64
receiver=Gondor
Text
Helm's Deep, Rohan's fortress in the west, falls to the Enemy!
EndText
@ENDIF

@IF
CityTaken
city=Edoras
attacker=Anybody
defender=Rohan
@THEN
JustOnce
CreateUnit
owner=Isengard
unit=Spy
count=2
veteran=true
homecity=none
locations
115,153
endlocations
ChangeTerrain
map=1
terraintype=0
maprect
112,152,114,152,114,154,112,154
ChangeMoney
receiver=TriggerAttacker
amount=1500
TakeTechnology
whom=Rohan
technology=41
Text
Edoras, home of the royal court of Rohan, the Golden Hall of Meduseld, is captured by the Enemy!
EndText
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Nature
@AND
CheckFlag
who=Isengard
mask=0x20800000
count=2
state=off
@THEN
PlayWaveFile
H1
PlayAVIFile
E4
CreateUnit
owner=Gondor
unit=omer
veteran=true
homecity=none
locations
114,152
115,151
113,153
113,151
114,150
115,149
116,150
117,151
114,154
115,155
endlocations
GiveTechnology
technology=33
receiver=Gondor
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Nature
@AND
CheckFlag
who=Isengard
mask=0x20800000
threshold=1
state=on
@THEN
PlayWaveFile
H1
PlayAVIFile
E5
CreateUnit
owner=Gondor
unit=omer
veteran=true
homecity=none
locations
114,152
115,151
113,153
113,151
114,150
115,149
116,150
117,151
114,154
115,155
endlocations
GiveTechnology
technology=33
receiver=Gondor
@ENDIF

@IF
UnitKilled
unit=*
map=1
attacker=Gondor
defender=Nature
@THEN
CreateUnit
owner=Gondor
unit=Riders of Rohan
count=6
veteran=true
homecity=none
locations
114,152
115,151
113,153
113,151
114,150
115,149
116,150
117,151
114,154
115,155
endlocations
Flag
continuous
who=Rohan
state=on
flag=16
@ENDIF

@IF
CheckFlag
who=Rohan
flag=16
state=on
@THEN
MakeAggression
who=Rohan
whom=Isengard
ModifyReputation
who=Isengard
whom=Rohan
modifier=100
@ENDIF

@IF
CheckFlag
who=Rohan
flag=16
state=on
@AND
CheckFlag
who=Isengard
mask=0xC00000
count=2
state=off
@THEN
JustOnce
ChangeTerrain
map=2
terraintype=0
maprect
216,232,216,232,216,232,216,232
MakeAggression
who=Isengard
whom=Rohan
Flag
continuous
who=Isengard
mask=0x4400000
state=on
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=25
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Elf-lord
count=2
veteran=false
homecity=none
locations
105,141
103,141
104,140
107,141
108,142
108,144
106,142
107,143
109,141
110,142
endlocations
Transport
unit=Aragorn (Strider)
state=on
mode=use
type=3
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=25
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Rangers of the North
count=3
veteran=true
homecity=none
locations
105,141
103,141
104,140
107,141
108,142
108,144
106,142
107,143
109,141
110,142
endlocations
Transport
unit=Rangers of the North
state=on
mode=use
type=0
Text
Rangers of the North appear in Rohan seeking Aragorn, Chief of the Dnedain. The leader of the Grey Company, Halbarad, bears the banner of the King, wrought by Arwen, daughter of Elrond. Elrond's sons, Elladan and Elrohir, ride with them; they bring a message from their father:
^
'The days are short. If thou art in haste, remember the Paths of the Dead.'
^
The Paths of the Dead are now open to Aragorn.
EndText
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=25
@THEN
JustOnce
Transport
unit=Elf-lord
state=on
mode=use
type=0
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Nature
@THEN
PlayWaveFile
P1
PlayAVIFile
P1
CreateUnit
owner=Gondor
unit=The Dead
count=8
veteran=true
homecity=none
locations
117,165
116,164
116,166
115,165
115,163
endlocations
Transport
unit=Legolas
state=on
mode=use
type=3
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Nature
@THEN
PlayAVIFile
P2
Transport
unit=Gimli
state=on
mode=use
type=3
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Nature
@THEN
Transport
unit=Rangers of the North
state=on
mode=use
type=3
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Nature
@THEN
Transport
unit=Elf-lord
state=on
mode=use
type=3
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Harad
@THEN
PlayWaveFile
G2
PlayAVIFile
G2
ChangeTerrain
terraintype=5
map=2
exceptionmask=0x1
maprect
158,166,160,166,160,172,158,172
Transport
unit=Mr Underhill
state=on
mode=use
type=5
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Harad
@THEN
Transport
unit=Sam
state=on
mode=use
type=5
@ENDIF

@IF
UnitKilled
unit=!
map=2
attacker=Gondor
defender=Harad
@THEN
Transport
unit=Frodo
state=on
mode=use
type=5
@ENDIF

@IF
UnitKilled
unit=!
map=3
attacker=Gondor
defender=Rhn
@THEN
Text
Helped by the distraction outside the Black Gate, the Hobbits finally reach Sammath Naur, the inner chamber of Mount Doom, after slipping past countless orcs. All that remains is for Frodo to cast the Ring into the fire bellow to destroy it. However parting with the Ring of Power is never that simple...
EndText
CreateUnit
owner=Harad
unit=Smagol
veteran=true
homecity=H3
randomize
locations
170,162,3
170,162,3
170,162,3
170,162,3
170,162,3
172,166,3
172,166,3
172,166,3
173,163,3
173,163,3
endlocations

@IF
UnitKilled
unit=Smagol
map=3
attacker=Gondor
defender=Harad
@THEN
Text
After the failure of his treacherous plan to deliver the Ring-bearer into the clutches of Shelob, Gollum makes an attempt to seize the Ring. Scarred by his trek through Mordor, the wretched creature is unable to overpower his victim. His attack is repelled. Forlorn, he crawls away on all fours. The Precious is lost forever.
EndText
PlayWaveFile
G5
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
map=3
attacker=Nature
defender=Gondor
@THEN
CreateUnit
owner=Gondor
unit=Mr Underhill
veteran=true
homecity=none
locations
173,163,3
endlocations
ChangeTerrain
map=2
terraintype=0
maprect
168,242,200,242,200,264,168,264
@ENDIF

@IF
UnitKilled
unit=Frodo
map=3
attacker=Nature
defender=Gondor
@THEN
CreateUnit
owner=Gondor
unit=Frodo
veteran=true
homecity=none
locations
173,163,3
endlocations
ChangeTerrain
map=2
terraintype=0
maprect
168,242,200,242,200,264,168,264
@ENDIF

@IF
CityDestroyed
city=M7
owner=Mordor
@THEN
PlayWaveFile
R3
PlayAVIFile
R3
ChangeTerrain
terraintype=5
exceptionmask=0x3CF
maprect
172,164,236,164,236,166,172,166
GiveTechnology
technology=19
receiver=Gondor
Flag
continuous
who=Mordor
state=on
mask=0x80280000
@ENDIF

@IF
CheckFlag
who=Mordor
flag=19
state=on
@THEN
JustOnce
PlayWaveFile
E1.wav
PlayAVIFile
E1
CreateUnit
owner=Gondor
unit=Eagles
count=3
veteran=true
homecity=none
locations
169,165
endlocations
ChangeTerrain
terraintype=9
exceptionmask=0x7F
maprect
158,152,194,152,194,164,158,164
EnableTechnology
whom=Gondor
technology=0
value=2
@ENDIF

@IF
CheckFlag
who=Mordor
flag=19
state=on
@THEN
JustOnce
ChangeTerrain
terraintype=9
exceptionmask=0x7F
maprect
161,165,167,165,167,165,161,165
TakeTechnology
whom=Gondor
technology=0
@ENDIF

@IF
CheckFlag
who=Mordor
flag=19
state=on
@THEN
JustOnce
ChangeTerrain
terraintype=9
exceptionmask=0x7F
maprect
158,166,190,166,190,190,158,190
@ENDIF

@IF
UnitKilled
unit=Sam
map=3
attacker=Nature
defender=Gondor
@THEN
CreateUnit
owner=Gondor
unit=Sam
veteran=true
homecity=none
locations
173,163,3
endlocations
Text
This is where Frodo must destroy the Ring. Sam can't help here!
EndText
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
map=3
attacker=Harad
defender=Gondor
@THEN
PlayWaveFile
D1
PlayAVIFile
G5
ChangeTerrain
map=2
terraintype=0
maprect
216,242,216,242,216,242,216,242
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Frodo
map=3
attacker=Harad
defender=Gondor
@THEN
PlayWaveFile
D1
PlayAVIFile
G5
ChangeTerrain
map=2
terraintype=0
maprect
216,242,216,242,216,242,216,242
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
attacker=Mordor
defender=Gondor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo the Ring-bearer is captured by agents of Mordor! Soon the Dark Lord will reclaim his prized possession!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Frodo
attacker=Mordor
defender=Gondor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by agents of Mordor! Soon the Dark Lord will reclaim his prized possession!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
map=0
map=1
map=2
attacker=Nature
defender=Gondor
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by Barrow-wights in the service of the Witch-king of Angmar! Soon the Dark Lord will reclaim his prized possession!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
map=0
map=1
map=2
attacker=Harad
defender=Gondor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by allies of Mordor! Soon Sauron will reclaim his prize!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Frodo
map=0
map=1
map=2
attacker=Harad
defender=Gondor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by allies of Mordor! Soon the Dark Lord will reclaim his prized possession!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
attacker=Rhn
defender=Gondor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by allies of Mordor! Soon Sauron will reclaim his prize!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
UnitKilled
unit=Frodo
attacker=Rhn
defender=Gondor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by allies of Mordor! Soon the Dark Lord will reclaim his prized possession!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18401000
@ENDIF

@IF
CheckFlag
who=Mordor
flag=28
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=13
perflagdelay=3
mask=0x10000
Flag
who=Mordor
state=off
flag=12
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x10001000
count=2
state=on
@THEN
CreateUnit
owner=Mordor
unit=Olog-hai
count=3
veteran=true
homecity=M4
randomize
locations
137,101
137,101
137,101
137,101
158,170
158,170
173,165
endlocations
Transport
unit=The Balrog
state=on
mode=native
type=2
MakeAggression
who=Mordor
whom=Isengard
ChangeMoney
receiver=Mordor
amount=500
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x10001000
count=2
state=on
@THEN
CreateUnit
owner=Mordor
unit=Uruk-hai
count=4
veteran=true
homecity=M4
randomize
locations
101,39
93,19
137,101
137,101
158,170
158,170
173,165
endlocations
Transport
unit=Eye Orcs
state=on
mode=native
type=2
MakeAggression
who=Harad
whom=Isengard
@ENDIF

@IF
CheckFlag
who=Mordor
flag=28
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=4
perflagdelay=2
mask=0x10000
PlayAVIFile
S3
CreateUnit
owner=Mordor
unit=Sauron
veteran=true
homecity=none
locations
173,165
endlocations
ChangeTerrain
map=1
terraintype=0
exceptionmask=0x10
maprect
100,132,136,132,136,146,100,146
TakeTechnology
whom=Gondor
technology=55
Flag
continuous
who=Mordor
state=on
flag=28
@ENDIF

@IF
UnitKilled
unit=Sauron
attacker=Gondor
defender=Mordor
@THEN
PlayAVIFile
S4
ChangeTerrain
map=2
terraintype=0
maprect
176,264,200,264,200,264,176,264
ChangeMoney
receiver=Mordor
amount=-20000
GiveTechnology
technology=55
receiver=Gondor
Flag
who=Mordor
state=off
mask=0x1B00C000
@ENDIF

@IF
UnitKilled
unit=Sauron
attacker=Gondor
defender=Mordor
@THEN
Flag
continuous
who=Mordor
state=on
flag=29
@ENDIF

@IF
CityTaken
city=Barad-dr
attacker=Gondor
defender=Mordor
@AND
CheckFlag
who=Mordor
mask=0x20040000
threshold=1
state=on
@THEN
PlayAVIFile
R4
EnableTechnology
whom=Gondor
technology=0
value=2
Flag
continuous
who=Mordor
state=on
flag=31
@ENDIF

@IF
CityTaken
city=Barad-dr
attacker=Anybody
defender=Mordor
@THEN
JustOnce
GiveTechnology
technology=19
receiver=Gondor
Flag
continuous
who=Mordor
state=on
flag=30
@ENDIF

@IF
CheckFlag
who=Mordor
flag=20
state=on
@THEN
JustOnce
ChangeTerrain
terraintype=9
exceptionmask=0x7F
maprect
159,151,193,151,193,189,159,189
TakeTechnology
whom=Gondor
technology=0
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x80200000
count=2
state=on
@AND
CheckFlag
who=Everybody
flag=6
state=off
@THEN
JustOnce
PlayWaveFile
K1
PlayAVIFile
K1
GiveTechnology
technology=69
receiver=Gondor
BestowImprovement
improvement=55
race=Gondor
capital=true
wonders=true
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x60040000
threshold=2
state=on
@THEN
JustOnce
PlayWaveFile
R3
PlayAVIFile
R5
ChangeTerrain
terraintype=5
exceptionmask=0x3CF
maprect
172,164,236,164,236,166,172,166
Flag
continuous
who=Mordor
state=on
mask=0x300000
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=on
@THEN
JustOnce
CreateUnit
owner=Elves
unit=Elven Marksmen
count=6
veteran=true
homecity=none
locations
123,103
endlocations
ChangeTerrain
map=2
terraintype=0
maprect
176,252,200,252,200,264,176,264
GiveTechnology
technology=68
receiver=Mordor
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=on
@THEN
CreateUnit
owner=Elves
unit=Elf-lord
veteran=true
homecity=none
randomize
locations
123,103
123,103
152,44
0,0
0,0
0,0
0,0
0,0
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Elves
maprect
116,98,126,98,126,110,116,110
moveto
137,101
numbertomove=All
ChangeMoney
receiver=Mordor
amount=-20000
TakeTechnology
whom=Rhn
technology=76
Flag
who=Mordor
state=off
mask=0x1B00C000
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=on
@THEN
CreateUnit
owner=Harad
unit=Black Ship
veteran=true
homecity=The Corsairs
randomize
locations
120,266
112,270
104,266
104,266
104,266
104,266
104,266
104,266
104,266
104,266
endlocations
ChangeMoney
receiver=Harad
amount=-20000
GiveTechnology
technology=68
receiver=Harad
Flag
continuous
who=Elves
state=on
flag=21
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=on
@THEN
ChangeMoney
receiver=Rhn
amount=-20000
GiveTechnology
technology=68
receiver=Rhn
@ENDIF

@IF
UnitKilled
unit=Mr Underhill
attacker=Isengard
defender=Gondor
@AND
CheckFlag
who=Everybody
mask=0xC0800000
count=3
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo is captured by agents of Saruman! What terror will the corrupted Wizard unleash when the Ring is in his possession?
EndText
Flag
continuous
who=Isengard
state=on
mask=0x14400000
Negotiator
who=Isengard
type=listener
state=set
@ENDIF

@IF
UnitKilled
unit=Frodo
attacker=Isengard
defender=Gondor
@AND
CheckFlag
who=Everybody
mask=0xC0800000
count=3
state=off
@THEN
PlayWaveFile
D1
ChangeTerrain
map=2
terraintype=0
maprect
192,242,216,242,216,242,192,242
Text
Frodo the Ring-bearer is captured by agents of Saruman! What terror will the corrupted Wizard unleash when the Ring is in his possession?
EndText
Flag
continuous
who=Isengard
state=on
mask=0x14400000
Negotiator
who=Isengard
type=listener
state=set
@ENDIF

@IF
CheckFlag
who=Isengard
flag=28
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=3
perflagdelay=2
mask=0x10000
PlayAVIFile
S5
CreateUnit
owner=Isengard
unit=Saruman
veteran=true
homecity=none
locations
103,135
105,135
102,136
103,137
104,136
102,138
104,138
105,137
96,128
95,117
endlocations
Flag
continuous
who=Mordor
state=on
mask=0x8400000
@ENDIF

@IF
CheckFlag
who=Isengard
flag=28
state=on
@THEN
CreateUnit
owner=Mordor
unit=Olog-hai
count=2
veteran=true
homecity=M1
randomize
locations
137,123,1
136,124,1
137,125,1
136,130,1
137,131,1
137,133,1
endlocations
MakeAggression
who=Rhn
whom=Isengard
@ENDIF

@IF
CheckFlag
who=Isengard
flag=28
state=on
@THEN
CreateUnit
owner=Isengard
unit=Uruk-hai
count=2
veteran=true
homecity=I1
randomize
locations
115,153
108,146
103,135
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
109,123,137,123,137,159,109,159
moveto
103,135
numbertomove=All
MakeAggression
who=Mordor
whom=Isengard
ChangeMoney
receiver=Isengard
amount=500
@ENDIF

@IF
CheckFlag
who=Isengard
flag=28
state=on
@THEN
CreateUnit
owner=Isengard
unit=Spy
veteran=true
homecity=I1
randomize
locations
115,153
108,146
103,135
0,0
0,0
0,0
0,0
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
138,166,154,166,154,174,138,174
moveto
103,135
numbertomove=All
MakeAggression
who=Harad
whom=Isengard
@ENDIF

@IF
UnitKilled
unit=Saruman
attacker=Anybody
defender=Isengard
@THEN
ChangeTerrain
map=2
terraintype=0
maprect
208,264,208,264,208,264,208,264
ChangeMoney
receiver=Isengard
amount=-20000
TakeTechnology
whom=Isengard
collapse
technology=31
Flag
who=Isengard
state=off
mask=0x14000000
Negotiator
who=Isengard
type=listener
state=set
@ENDIF

@IF
UnitKilled
unit=Saruman
attacker=Anybody
defender=Isengard
@THEN
Flag
continuous
who=Isengard
state=on
flag=29
@ENDIF

@IF
UnitKilled
unit=Saruman
attacker=Gondor
defender=Isengard
@THEN
PlayWaveFile
S1
PlayAVIFile
S1
Flag
continuous
who=Mordor
state=on
flag=18
@ENDIF

@IF
UnitKilled
unit=Saruman
attacker=Rohan
defender=Isengard
@THEN
Text
Rohan reports that it has slain the Wizard Saruman and recovered the One Ring! A seemingly insurmountable task remains for the Free Peoples of Middle-earth: an all-out assault on Barad-dr.
EndText
Flag
continuous
who=Mordor
state=on
flag=18
@ENDIF

@IF
UnitKilled
unit=Saruman
attacker=Mordor
defender=Isengard
@THEN
Text
Servants of Sauron slay the treacherous Wizard Saruman and recover the One Ring for their Master!
EndText
Flag
continuous
who=Mordor
state=on
mask=0x18400000
@ENDIF

@IF
CityTaken
city=Isengard
attacker=Anybody
defender=Isengard
@AND
CheckFlag
who=Isengard
flag=28
state=on
@THEN
JustOnce
PlayAVIFile
I2
ChangeTerrain
terraintype=5
maprect
102,132,104,132,104,134,102,134
@ENDIF

@IF
CityTaken
city=Isengard
attacker=Anybody
defender=Isengard
@AND
CheckFlag
who=Isengard
mask=0x30000000
count=2
state=off
@THEN
JustOnce
PlayAVIFile
I1
ChangeTerrain
terraintype=5
maprect
102,132,104,132,104,134,102,134
Flag
continuous
who=Isengard
state=on
flag=30
Negotiator
who=Isengard
type=listener
state=set
@ENDIF

@IF
CityTaken
city=Isengard
attacker=Anybody
defender=Isengard
@THEN
JustOnce
ChangeTerrain
map=1
terraintype=0
maprect
100,132,106,132,106,136,100,136
ChangeMoney
receiver=Isengard
amount=-20000
TakeTechnology
whom=Isengard
collapse
technology=31
Flag
who=Isengard
state=off
mask=0x14000000
@ENDIF

@IF
CityTaken
city=Isengard
attacker=Anybody
defender=Isengard
@THEN
JustOnce
ChangeTerrain
map=2
terraintype=0
maprect
208,264,208,264,208,264,208,264
GiveTechnology
technology=27
receiver=Gondor
Flag
continuous
who=Isengard
state=on
flag=23
@ENDIF

@IF
CheckFlag
who=Isengard
flag=30
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=10
perflagdelay=20
mask=0x10000
MakeAggression
who=Mordor
whom=Isengard
GiveTechnology
technology=5
receiver=Isengard
Flag
continuous
who=Isengard
state=on
flag=12
@ENDIF

@IF
CheckFlag
who=Rohan
flag=22
state=on
@THEN
JustOnce
CreateUnit
owner=Isengard
unit=Sharkey
veteran=true
homecity=none
locations
55,69
66,72
67,65
59,75
63,71
55,61
64,62
60,60
81,67
72,64
endlocations
Text
Saruman, released by the Ents from his tower in Isengard and filled with the desire for petty vengeance, appears in the Shire with his evil henchmen.
EndText
@ENDIF

@IF
CheckFlag
who=Rohan
flag=22
state=on
@THEN
JustOnce
CreateUnit
owner=Isengard
unit=Dunlendings
count=5
veteran=true
homecity=none
randomize
locations
55,69
66,72
67,65
59,75
63,71
55,61
64,62
60,60
81,67
72,64
endlocations
@ENDIF

@IF
CheckFlag
who=Isengard
flag=12
state=on
@THEN
JustOnce
CreateUnit
owner=Isengard
unit=Spy
count=5
veteran=true
homecity=none
randomize
locations
55,69
66,72
67,65
59,75
63,71
55,61
64,62
60,60
81,67
72,64
endlocations
ChangeMoney
receiver=Isengard
amount=5000
GiveTechnology
technology=24
receiver=Isengard
Flag
continuous
who=Rohan
state=on
flag=22
@ENDIF

@IF
UnitKilled
unit=Sharkey
attacker=Anybody
defender=Isengard
@THEN
PlayWaveFile
S1
ChangeMoney
receiver=Isengard
amount=-20000
TakeTechnology
whom=Isengard
technology=78
Text
The treacherous and spiteful Wizard Saruman is finally slain!
EndText
@ENDIF

@IF
UnitKilled
unit=Smagol
attacker=Anybody
defender=Gondor
@THEN
PlayWaveFile
D1
Text
The creature Gollum is slain! How will the Ring-bearer find a way into Mordor?
EndText
@ENDIF

@IF
UnitKilled
unit=Elrond
attacker=Anybody
defender=Gondor
@THEN
Text
Elrond Half-elven, Master of Rivendell, finally departs Middle-earth.
EndText
@ENDIF

@IF
UnitKilled
unit=Radagast the Brown
attacker=Anybody
defender=Gondor
@THEN
Text
The Wizard Radagast the Brown is slain during the struggle for Northern Mirkwood!
EndText
@ENDIF

@IF
UnitKilled
unit=Faramir
attacker=Anybody
defender=Gondor
@THEN
EnableTechnology
whom=Gondor
technology=66
value=2
Text
Faramir, Ranger of Ithilien is slain!
EndText
Flag
continuous
who=Gondor
state=on
flag=21
@ENDIF

@IF
UnitKilled
unit=Gwaihir
attacker=Anybody
defender=Gondor
@THEN
Text
Gwaihir the Windlord plummets to his doom!
EndText
@ENDIF

@IF
UnitKilled
unit=Brand
attacker=Anybody
defender=Gondor
@THEN
EnableTechnology
whom=Gondor
technology=49
value=2
Text
Brand, Lord of Dale is slain!
EndText
@ENDIF

@IF
UnitKilled
unit=Din II Ironfoot
attacker=Anybody
defender=Gondor
@THEN
EnableTechnology
whom=Gondor
technology=57
value=2
Text
Dwarven King Din II dies in battle - axe in hand!
EndText
@ENDIF

@IF
UnitKilled
unit=Grimbeorn
attacker=Anybody
defender=Gondor
@THEN
Text
Grimbeorn, Lord of the Beornings, dies defending his forest home!
EndText
@ENDIF

@IF
UnitKilled
unit=Treebeard
attacker=Anybody
defender=Gondor
@THEN
Text
Treebeard the Ent is hacked down in battle!
EndText
@ENDIF

@IF
UnitKilled
unit=Thoden
attacker=Anybody
defender=Gondor
@THEN
Text
King Thoden, leading the charge, is thrown from his mount and dies of his wounds!
EndText
@ENDIF

@IF
UnitKilled
unit=omer
attacker=Anybody
defender=Gondor
@THEN
Text
omer, Third Marshal of the Riddermark, surrenders his life for his beloved Rohan!
EndText
@ENDIF

@IF
UnitKilled
unit=owyn
attacker=Anybody
defender=Gondor
@THEN
Text
owyn, warrior maiden of Rohan, dies valiantly defending her people!
EndText
@ENDIF

@IF
UnitKilled
unit=Nazgl
attacker=Anybody
defender=Mordor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
Text
A Nazgl has been defeated in combat! The wraith, unclad, returns to Mordor to restore its strength.
EndText
@ENDIF

@IF
UnitKilled
unit=Nazgl
attacker=Anybody
defender=Mordor
@THEN
DelayPerFlag
randomize
basedelay=30
perflagdelay=10
mask=0x10000
CreateUnit
owner=Mordor
unit=Winged Nazgl
veteran=true
homecity=Barad-dr
locations
237,165
endlocations
@ENDIF

@IF
UnitKilled
unit=Winged Nazgl
attacker=Anybody
defender=Mordor
@THEN
CreateUnit
owner=Mordor
unit=Winged Nazgl
veteran=false
homecity=Barad-dr
randomize
locations
237,165
237,165
237,165
237,165
237,165
237,167
237,167
237,167
endlocations
Text
A Winged Nazgl's mount is slain! Its rider departs the battlefield.
EndText
@ENDIF

@IF
UnitKilled
unit=Lord of the Nazgl
attacker=Anybody
defender=Mordor
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
Text
The Lord of the Nazgl, Black Captain of Morgul, has been injured and returns to his Master.
EndText
@ENDIF

@IF
UnitKilled
unit=Lord of the Nazgl
attacker=Anybody
defender=Mordor
@THEN
DelayPerFlag
randomize
basedelay=17
perflagdelay=4
mask=0x10000
Flag
continuous
who=Mordor
state=on
flag=17
@ENDIF

@IF
UnitKilled
unit=Winged Nazgl Lord
attacker=Anybody
defender=Mordor
@THEN
Text
The Lord of the Nazgl has been slain, never to rise again! His lieutenant, Gothmog, takes command of the forces of Morgul.
EndText
@ENDIF

@IF
UnitKilled
unit=The Balrog
attacker=Anybody
defender=Mordor
@THEN
Text
The Flame of Udn is extinguished! Perhaps one day the Dwarves will mount an expedition to reclaim their beloved halls in Moria.
EndText
Flag
continuous
who=Elves
state=on
mask=0x180000
@ENDIF

@IF
CheckFlag
who=Elves
mask=0x380000
count=3
state=on
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Dwarves
count=7
veteran=true
homecity=none
randomize
locations
32,48,1
159,39,1
186,44,1
endlocations
@ENDIF

@IF
UnitKilled
unit=Shelob the Great
attacker=Anybody
defender=Mordor
@THEN
PlayWaveFile
S2
Text
Badly wounded, the foul, bloated form of Shelob the Great retreats into her dark lair!
EndText
@ENDIF

@IF
UnitKilled
unit=Grond
attacker=Anybody
defender=Mordor
@THEN
Text
Sauron's massive siege ram, Grond, has been destroyed!
EndText
@ENDIF

@IF
UnitKilled
unit=Barrow-wight
attacker=Gondor
defender=Nature
@THEN
JustOnce
Text
Rumours circulate around Bree-land and the Shire of evil spirits from the Barrow-downs roaming the wilds. Perhaps they are stirred by the presence of an old master.
EndText
@ENDIF

@IF
CityTaken
city=Minas Tirith
attacker=Mordor
defender=Gondor
@THEN
JustOnce
PlayWaveFile
M2
MakeAggression
who=Mordor
whom=Isengard
Text
The seven walls of the citadel Minas Tirith have been breached by Mordor's dark armies! Savage orcs and trolls swarm into the city!
EndText
@ENDIF

@IF
CityTaken
city=Minas Tirith
attacker=Anybody
defender=Gondor
@THEN
JustOnce
Transport
unit=Mmakil
state=on
mode=native
type=0
Flag
continuous
who=Gondor
state=on
flag=18
@ENDIF

@IF
CityTaken
city=Rivendell
attacker=Anybody
defender=Gondor
@THEN
JustOnce
ChangeTerrain
map=3
terraintype=0
maprect
108,58,118,58,118,68,108,68
Text
The magical wards of Rivendell have been breached! Elrond's great house of wisdom, and refuge for Elves and Men of goodwill, has fallen.
EndText
@ENDIF

@IF
CityTaken
city=Dol Amroth
attacker=Anybody
defender=Gondor
@THEN
JustOnce
EnableTechnology
whom=Gondor
technology=61
value=2
Text
Dol Amroth, port city of Belfalas, has fallen to the Enemy!
EndText
Flag
continuous
who=Gondor
state=on
flag=19
@ENDIF

@IF
CityTaken
city=Pelargir
attacker=Anybody
defender=Gondor
@THEN
Flag
continuous
who=Gondor
state=on
flag=20
@ENDIF

@IF
CityTaken
city=Pelargir
attacker=Harad
defender=Gondor
@THEN
JustOnce
Text
The port city of Pelargir, pillar of defence in southern Gondor, yields to the massive army of the Southrons!
EndText
@ENDIF

@IF
CityTaken
city=Pelargir
attacker=Gondor
defender=Harad
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Black Ship
count=5
veteran=true
homecity=None
locations
146,196
endlocations
Text
The Men of Gondor regain the city of Pelargir. A fleet of Black Ships from Umbar is captured in the port.
EndText
@ENDIF

@IF
CityTaken
city=Osgiliath
attacker=Mordor
defender=Gondor
@THEN
JustOnce
PlayWaveFile
M2
Text
Fierce orcs cross the river Anduin and drive the defenders from their outpost on the west bank of the ruined city of Osgiliath. Houses and barns across the Pelennor are set alight as the Enemy sweeps onto the plain. Only the walls of Minas Tirith stand 
before the armies of Mordor now.
EndText
@ENDIF

@IF
CityTaken
city=Osgiliath
attacker=Anybody
defender=Gondor
@THEN
JustOnce
GiveTechnology
technology=47
receiver=Gondor
Flag
continuous
who=Gondor
state=on
flag=21
@ENDIF

@IF
CityTaken
city=Cair Andros
attacker=Mordor
defender=Gondor
@THEN
JustOnce
PlayWaveFile
M2
Text
Cair Andros, Gondor's fortified island on the river Anduin, is assaulted by wave upon wave of black orcs and trolls! Its defences are broken and the island succumbs to the armies of Mordor.
EndText
@ENDIF

@IF
CityTaken
city=Cair Andros
attacker=Anybody
defender=Gondor
@THEN
JustOnce
Transport
unit=Mmakil
state=on
mode=native
type=0
Flag
continuous
who=Gondor
state=on
flag=21
@ENDIF

@IF
CityTaken
city=Dol Guldur
attacker=Anybody
defender=Mordor
@THEN
JustOnce
ChangeTerrain
map=1
terraintype=0
maprect
134,98,140,98,140,104,134,104
Text
Dol Guldur, Sauron's fortress in Southern Mirkwood, has been captured! Its great dungeons and pits have been destroyed.
EndText
Flag
continuous
who=Elves
state=on
flag=17
@ENDIF

@IF
CheckFlag
who=Elves
flag=17
state=off
@THEN
CreateUnit
owner=Mordor
unit=Spiders
count=5
veteran=true
homecity=None
randomize
locations
141,45
144,46
147,47
149,51
146,56
145,59
144,64
153,69
153,79
148,94
endlocations
@ENDIF

@IF
CityTaken
city=Lrien
attacker=Anybody
defender=Elves
@THEN
JustOnce
ChangeTerrain
terraintype=6
maprect
123,103,123,103,123,103,123,103
Text
Orcs and wolves from Dol Guldur pour into the city of Caras Galadhon in the Elven realm of Lrien! Queen Galadriel and Celeborn are lost in the fierce battle!
EndText
@ENDIF

@IF
CityTaken
city=Lrien
attacker=Anybody
defender=Elves
@THEN
JustOnce
ChangeTerrain
map=1
terraintype=3
maprect
122,102,124,102,124,104,122,104
Flag
continuous
who=Elves
state=on
flag=18
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
CreateUnit
owner=Elves
unit=Elf-lord
veteran=true
homecity=Lrien
randomize
locations
123,103
152,44
0,0
0,0
0,0
0,0
0,0
0,0
0,0
endlocations
@ENDIF

@IF
CheckFlag
who=Elves
mask=0x60000
count=2
state=off
@AND
CheckFlag
who=Mordor
flag=31
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=6
perflagdelay=12
mask=0x10000
CreateUnit
owner=Elves
unit=Catapult
count=7
veteran=true
homecity=None
locations
135,101
136,100
136,102
137,103
137,99
endlocations
@ENDIF

@IF
CityTaken
city=Woodland Realm
attacker=Anybody
defender=Elves
@THEN
Flag
who=Gondor
state=off
flag=25
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=7
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Eagles
count=3
veteran=true
homecity=none
locations
124,56
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=7
@THEN
JustOnce
PlayWaveFile
E1.wav
PlayAVIFile
E6
CreateUnit
owner=Gondor
unit=Gwaihir
veteran=true
homecity=none
locations
124,56
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=46
@THEN
JustOnce
PlayWaveFile
R2
PlayAVIFile
R2
CreateUnit
owner=Gondor
unit=Thoden
veteran=true
homecity=none
randomize
locations
115,151,2
114,150,2
115,149,2
116,148,2
117,149,2
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=46
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=owyn
veteran=true
homecity=none
randomize
locations
115,151,2
114,150,2
115,149,2
116,148,2
117,149,2
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=46
@THEN
JustOnce
CreateUnit
owner=Gondor
unit=Riders of Rohan
count=12
veteran=true
homecity=none
randomize
locations
115,151,2
114,150,2
115,149,2
116,148,2
117,149,2
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=49
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
B3
CreateUnit
owner=Gondor
unit=Archers
count=7
veteran=true
homecity=none
locations
159,43
158,46
159,41
158,42
160,42
158,44
157,43
157,45
161,41
157,41
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=57
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
D3
CreateUnit
owner=Gondor
unit=Dwarves
count=6
veteran=true
homecity=none
locations
159,41
159,43
160,42
161,41
161,43
endlocations
@ENDIF

@IF
CheckFlag
who=Gondor
technology=61
flag=19
state=off
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
K2
CreateUnit
owner=Gondor
unit=Knights
count=6
veteran=true
homecity=none
locations
110,190
endlocations
@ENDIF

@IF
CheckFlag
who=Gondor
technology=65
flag=18
state=off
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
G7
CreateUnit
owner=Gondor
unit=Spearmen
count=7
veteran=true
homecity=none
locations
150,174
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=66
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
R6
CreateUnit
owner=Gondor
unit=Rangers of Ithilien
count=6
veteran=true
homecity=none
locations
155,165,1
154,166,1
156,166,1
155,163,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=72
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
L2
CreateUnit
owner=Gondor
unit=Spearmen
count=7
veteran=true
homecity=none
locations
146,196
138,190
130,194
117,203
128,178
123,177
121,173
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=73
@THEN
JustOnce
PlayWaveFile
H1
PlayAVIFile
H2
CreateUnit
owner=Gondor
unit=Hobbits
count=7
veteran=true
homecity=none
randomize
locations
59,65
60,66
65,67
65,69
54,66
58,70
63,67
57,69
62,64
53,67
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=83
@THEN
JustOnce
PlayWaveFile
T1
PlayAVIFile
T1
ChangeTerrain
map=2
terraintype=0
maprect
231,231,233,231,233,243,231,243
Flag
continuous
who=Mordor
state=on
flag=16
@ENDIF

@IF
ReceivedTechnology
receiver=Gondor
technology=83
@THEN
JustOnce
ChangeTerrain
map=2
terraintype=0
maprect
192,222,192,222,192,222,192,222
Transport
unit=Mr Underhill
state=on
mode=use
type=2
@ENDIF

@IF
UnitKilled
unit=Spiders
attacker=Gondor
defender=Harad
@THEN
JustOnce
Text
The road to Bree is watched by the Dark Lord's spies and the Ringwraiths. Frodo takes the path to Bree through the Old Forest and Barrow Downs.
Endtext
ChangeTerrain
map=2
terraintype=0
maprect
192,222,192,222,192,222,192,222
@ENDIF



@IF
CheckFlag
who=Mordor
mask=0x80010000
count=2
state=off
@THEN
CreateUnit
owner=Nature
unit=Barrow-wight
veteran=false
homecity=N4
randomize
locations
72,68
72,70
75,67
75,67
65,67
65,67
0,0
0,0
0,0
0,0
endlocations
@ENDIF

@IF
CheckFlag
who=Everybody
mask=0x3FFF
threshold=4
state=on
@AND
CheckFlag
who=Mordor
mask=0xE0400000
count=4
state=off
@THEN
JustOnce
Delay
randomize
delay=5
Flag
continuous
who=Mordor
state=on
mask=0x8400000
@ENDIF

@IF
Turn
turn=48
@AND
CheckFlag
who=Mordor
mask=0xE0400000
count=4
state=off
@THEN
DelayPerFlag
randomize
basedelay=0
perflagdelay=2
mask=0x190000
Flag
continuous
who=Mordor
state=on
mask=0x8400000
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=22
perflagdelay=6
mask=0x10000
Flag
who=Mordor
state=off
mask=0xB000000
@ENDIF

@IF
Turn
turn=25
@AND
CheckFlag
who=Mordor
mask=0xE0000000
count=3
state=off
@THEN
Flag
continuous
who=Mordor
state=on
flag=14
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x404000
count=2
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=22
perflagdelay=6
mask=0x10000
Flag
who=Mordor
state=off
flag=14
@ENDIF

@IF
Turn
turn=50
@AND
CheckFlag
who=Mordor
mask=0xE0000000
count=3
state=off
@THEN
Flag
continuous
who=Mordor
state=on
flag=15
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x408000
count=2
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=22
perflagdelay=6
mask=0x10000
Flag
who=Mordor
state=off
flag=15
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
JustOnce
PlayWaveFile
M1
PlayAVIFile
M1
CreateUnit
owner=Mordor
unit=Mmakil
count=7
veteran=true
homecity=M1
randomize
locations
161,169
161,169
160,150
158,170
158,170
endlocations
Flag
continuous
who=Gondor
state=on
mask=0x3000000
@ENDIF

@IF
UnitKilled
unit=Mmakil
attacker=Anybody
defender=Mordor
@THEN
JustOnce
Delay
delay=10
CreateUnit
owner=Mordor
unit=Mmakil
count=6
veteran=true
homecity=M1
locations
153,173
158,170
endlocations

@IF
CheckFlag
who=Mordor
mask=0x8020000
count=2
state=on
@THEN
JustOnce
Delay
delay=5
PlayAVIFile
W1
CreateUnit
owner=Mordor
unit=Winged Nazgl Lord
veteran=true
homecity=Barad-dr
locations
158,170
173,165
endlocations
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x408000
count=2
state=on
@THEN
CreateUnit
owner=Mordor
unit=Olog-hai
count=5
veteran=true
homecity=Barad-dr
randomize
locations
137,101
161,169
161,169
161,169
158,170
158,170
158,170
0,0
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
128,174,150,174,150,196,128,196
moveto
123,177
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x408000
count=2
state=on
@THEN
CreateUnit
owner=Mordor
unit=Siege Tower
count=3
veteran=true
homecity=M1
randomize
locations
161,169
161,169
158,170
158,170
158,170
153,173
153,173
153,173
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
125,123,137,123,137,149,125,149
moveto
111,151
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x408000
count=2
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=4
perflagdelay=4
mask=0x10000
PlayAVIFile
G6
CreateUnit
owner=Mordor
unit=Grond
veteran=true
homecity=M1
locations
150,174
153,173
158,170
161,169
173,165
endlocations
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x404000
count=2
state=on
@THEN
CreateUnit
owner=Mordor
unit=Uruk-hai
count=7
veteran=true
homecity=Barad-dr
randomize
locations
158,170
158,170
158,170
160,150
161,169
158,158
136,118,1
130,112,1
137,123,1
173,165
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
125,123,137,123,137,149,125,149
moveto
111,151
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
mask=0x404000
count=2
state=on
@THEN
CreateUnit
owner=Mordor
unit=Catapult
count=4
veteran=true
homecity=M1
randomize
locations
137,101
161,169
158,170
153,173
153,173
153,173
153,173
0,0
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
141,45,159,45,159,53,141,53
moveto
152,44
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
CreateUnit
owner=Mordor
unit=Wolves
count=2
veteran=true
homecity=Barad-dr
randomize
locations
93,19
118,28
125,31,1
66,98,1
117,77,1
121,55,1
123,45,2
124,50,2
124,74,2
137,101
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
85,97,85,97,85,97,85,97
moveto
69,81
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
CreateUnit
owner=Mordor
unit=Wolf-riders
count=3
veteran=true
homecity=M1
randomize
locations
125,31,1
129,31,1
133,31,1
120,36,1
123,45,2
124,48,2
124,64,2
137,101
137,101
137,101
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
125,123,137,123,137,149,125,149
moveto
111,151
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
CreateUnit
owner=Mordor
unit=Eye Orcs
count=7
veteran=true
homecity=M1
randomize
locations
158,170
158,170
158,170
161,169
161,169
158,158
150,52,1
147,53,1
137,131,1
134,114,1
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
141,45,159,45,159,53,141,53
moveto
152,44
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=27
state=on
@THEN
CreateUnit
owner=Mordor
unit=Trolls
count=4
veteran=true
homecity=M1
randomize
locations
106,62,1
108,62,1
93,19
160,150
158,170
158,170
161,169
161,169
158,158
137,101
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
128,174,150,174,150,196,128,196
moveto
123,177
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Gondor
mask=0x1C0000
threshold=2
state=on
@THEN
Flag
who=Gondor
state=off
flag=24
@ENDIF

@IF
CheckFlag
who=Gondor
flag=24
state=on
@THEN
CreateUnit
owner=Harad
unit=Horsemen
count=2
veteran=true
homecity=H1
locations
146,196
129,221
163,237
168,262
174,270
112,270
endlocations
ChangeTerrain
terraintype=10
maprect
126,206,126,206,126,206,126,206
@ENDIF

@IF
CheckFlag
who=Gondor
flag=24
state=on
@THEN
CreateUnit
owner=Harad
unit=Mmakil
veteran=true
homecity=H1
randomize
locations
153,229
129,221
163,237
163,237
0,0
0,0
0,0
0,0
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Harad
maprect
138,178,146,178,146,196,138,196
moveto
123,177
numbertomove=All
ChangeTerrain
terraintype=2
maprect
126,206,126,206,126,206,126,206
@ENDIF

@IF
CheckFlag
who=Gondor
flag=24
state=on
@THEN
CreateUnit
owner=Harad
unit=Corsairs
count=4
veteran=true
homecity=H1
randomize
locations
126,206
126,206
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Harad
maprect
110,190,110,190,110,190,110,190
moveto
114,184
numbertomove=All
ChangeTerrain
terraintype=10
maprect
126,206,126,206,126,206,126,206
@ENDIF

@IF
CheckFlag
who=Gondor
flag=24
state=on
@THEN
CreateUnit
owner=Harad
unit=Black Ship
veteran=true
homecity=H1
randomize
locations
126,206
124,206
endlocations
MoveUnit
unit=AnyUnit
owner=Harad
maprect
117,203,117,203,117,203,117,203
moveto
110,190
numbertomove=All
ChangeTerrain
terraintype=2
maprect
98,200,98,200,98,200,98,200
@ENDIF

@IF
CheckFlag
who=Gondor
flag=24
state=on
@THEN
CreateUnit
owner=Harad
unit=Corsairs
count=4
veteran=true
homecity=H1
randomize
locations
98,200
98,200
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Harad
maprect
111,205,175,205,175,221,111,221
moveto
146,196
numbertomove=All
ChangeTerrain
terraintype=10
maprect
98,200,98,200,98,200,98,200
@ENDIF

@IF
CheckFlag
who=Gondor
flag=24
state=on
@THEN
CreateUnit
owner=Harad
unit=Black Ship
veteran=true
homecity=H1
locations
98,200
endlocations
MoveUnit
unit=AnyUnit
owner=Harad
maprect
98,200,98,200,98,200,98,200
moveto
130,194
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Gondor
flag=25
state=on
@THEN
CreateUnit
owner=Rhn
unit=Horsemen
count=5
veteran=true
homecity=E1
randomize
locations
186,76
186,76
186,76
186,76
186,76
195,97
200,46
200,54
207,91
202,108
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
85,97,85,97,85,97,85,97
moveto
69,81
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Gondor
flag=25
state=on
@THEN
CreateUnit
owner=Rhn
unit=Axemen of Rhn
count=3
veteran=true
homecity=E1
locations
158,46
159,43
186,76
195,97
207,91
214,94
202,108
224,90
222,108
227,123
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
141,45,159,45,159,53,141,53
moveto
152,44
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Gondor
flag=25
state=on
@THEN
CreateUnit
owner=Rhn
unit=Battering Ram
veteran=true
homecity=E1
locations
158,46
159,43
174,60
186,76
195,97
207,91
214,94
202,108
224,90
222,108
endlocations
MoveUnit
unit=AnyUnit
owner=Rhn
maprect
156,108,218,108,218,148,156,148
moveto
152,166
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Isengard
mask=0x70FFF
threshold=4
state=on
@AND
CheckFlag
who=Isengard
mask=0x60C00000
count=4
state=off
@THEN
JustOnce
ChangeTerrain
map=2
terraintype=0
maprect
216,232,216,232,216,232,216,232
Flag
continuous
who=Isengard
state=on
mask=0x4400000
@ENDIF

@IF
Turn
turn=36
@AND
CheckFlag
who=Isengard
mask=0x20C00000
count=3
state=off
@THEN
DelayPerFlag
randomize
basedelay=0
perflagdelay=6
mask=0x10000
ChangeTerrain
map=2
terraintype=0
maprect
216,232,216,232,216,232,216,232
Flag
continuous
who=Isengard
state=on
mask=0x4400000
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
JustOnce
DelayPerFlag
randomize
basedelay=16
perflagdelay=6
mask=0x10000
Flag
who=Isengard
state=off
flag=26
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
CreateUnit
owner=Isengard
unit=Uruk-hai
count=3
veteran=true
homecity=I1
randomize
locations
126,136,1
137,145,1
136,146,1
103,135
103,135
103,135
104,136
102,136
103,137
105,135
endlocations
MakeAggression
who=Isengard
whom=Gondor
ModifyReputation
who=Gondor
whom=Isengard
modifier=100
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
CreateUnit
owner=Isengard
unit=Hand Orcs
count=4
veteran=true
homecity=I1
randomize
locations
118,134,1
133,139,1
103,135
103,135
103,135
103,135
104,136
102,136
103,137
105,135
endlocations
MakeAggression
who=Isengard
whom=Rohan
ModifyReputation
who=Rohan
whom=Isengard
modifier=100
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
CreateUnit
owner=Isengard
unit=Battering Ram
count=3
veteran=true
homecity=I1
randomize
locations
115,153
111,151
108,146
103,135
0,0
0,0
endlocations
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
CreateUnit
owner=Isengard
unit=Dunlendings
count=2
veteran=true
homecity=I1
randomize
locations
95,117
96,128
endlocations
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
CreateUnit
owner=Isengard
unit=Wolves
veteran=false
homecity=I1
randomize
locations
95,117
96,128
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Isengard
maprect
85,97,85,97,85,97,85,97
moveto
69,81
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Isengard
flag=26
state=on
@THEN
CreateUnit
owner=Isengard
unit=Wolf-riders
count=3
veteran=true
homecity=I1
randomize
locations
103,135
103,135
103,135
103,135
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Isengard
maprect
101,133,111,133,111,145,101,145
moveto
108,146
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
CreateUnit
owner=Mordor
unit=Wolves
count=2
veteran=false
homecity=none
randomize
locations
107,93
114,108
115,71
126,66
109,81
120,78,1
122,40
101,39
93,19
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
161,161,197,161,197,211,161,211
moveto
158,170
numbertomove=All
MakeAggression
who=Mordor
whom=Rohan
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
CreateUnit
owner=Elves
unit=Elven Marksmen
veteran=true
homecity=none
randomize
locations
152,44
123,103
0,0
0,0
0,0
endlocations
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
158,152,164,152,164,160,158,160
moveto
160,150
numbertomove=All
MakeAggression
who=Harad
whom=Rohan
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
152,166,158,166,158,174,152,174
moveto
150,174
numbertomove=All
MakeAggression
who=Rohan
whom=Mordor
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
118,28,136,28,136,58,118,58
moveto
123,103
numbertomove=All
MakeAggression
who=Harad
whom=Elves
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
CreateUnit
owner=Harad
unit=Black Ship
veteran=false
homecity=HARONDOR
randomize
locations
129,221
128,220
128,220
128,220
128,220
128,220
128,220
128,220
128,220
endlocations
MoveUnit
unit=AnyUnit
owner=Harad
maprect
136,204,174,204,174,274,136,274
moveto
146,196
numbertomove=All
MakeAggression
who=Elves
whom=Harad
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Harad
maprect
104,240,134,240,134,274,104,274
moveto
163,237
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Rhn
maprect
160,0,238,0,238,76,160,76
moveto
159,43
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=AnyUnit
attacker=Anybody
defender=Anybody
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Rhn
maprect
160,0,238,0,238,88,160,88
moveto
159,43
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Rhn
maprect
207,89,225,89,225,95,207,95
moveto
186,76
numbertomove=All
MakeAggression
who=Rhn
whom=Elves
@ENDIF

@IF
CheckFlag
who=Elves
flag=18
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Mordor
maprect
116,78,138,78,138,114,116,114
moveto
123,103
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Harad
maprect
177,193,237,193,237,275,177,275
moveto
163,237
numbertomove=All
MakeAggression
who=Elves
whom=Isengard
@ENDIF

@IF
UnitKilled
unit=AnyUnit
attacker=Anybody
defender=Anybody
@AND
CheckFlag
who=Mordor
flag=31
state=off
@THEN
MoveUnit
unit=AnyUnit
owner=Harad
maprect
177,193,237,193,237,275,177,275
moveto
163,237
numbertomove=All
@ENDIF

@IF
CheckFlag
who=Elves
flag=16
state=on
@THEN
MoveUnit
unit=AnyUnit
owner=Rhn
maprect
221,91,237,91,237,275,221,275
moveto
224,90
numbertomove=All
MakeAggression
who=Isengard
whom=Elves
@ENDIF

@IF
UnitKilled
unit=AnyUnit
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=AnyUnit
owner=Rhn
maprect
221,91,237,91,237,275,221,275
moveto
224,90
numbertomove=All
@ENDIF

@ENDEVENTS
